package com.abc.pay.client.ebus.common;

import com.abc.pay.client.JSON;
import com.abc.pay.client.TrxException;
import com.abc.pay.client.TrxRequest;
import lombok.extern.slf4j.Slf4j;

import java.util.LinkedHashMap;

@Slf4j
public class EBusMerchantCommonRequest extends TrxRequest {
    public LinkedHashMap dicRequest = new LinkedHashMap();

    public EBusMerchantCommonRequest() {
        super("EBUS");
    }

    protected void checkRequest() {
    }

    public String getRequestMessage() throws TrxException {
        String tMessage = JSON.ConvertHashMap2Json(this.dicRequest);
        log.info(tMessage);
        return tMessage;
    }

    public void setConnectionFlag(boolean flag) {
        super.connectionFlag = flag;
    }
}
